home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1097 / AMOSLIST / text0262.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.6 KB  |  42 lines

  1.  >>Anyone have any AMOS code for doing a pattern match on a string?
  2. > >>e.g. *.AMOS or #?.AMOS to see if a string contains .AMOS in it
  3. > >>anywhere.
  4. > >>Saves me writing it myself...
  5. > >A=Instr(<string to check>,<string to search for>)
  6. > THAT's NOT A PATTERN MATCH, but a character match
  7.  
  8. Yes. A few people have misunderstood me I think.
  9. This is what I need.
  10. using: #?amos#?pro :as a pattern would respond
  11. True for "amos pro" or "amos not pro" or "not amos pro" or "not amos
  12. not pro" etc. As long as it has Anything, then the word "amos" then
  13. anything else and then the word "pro" and nothing else.... get it?
  14.  
  15. No-one programmed anything like this?
  16. I know some extension use it (AMCAF) and you can access the Pattern
  17. Match in a library somehow but I'd rather let it work with 1.3 dos as
  18. well.
  19.  
  20. -Murray
  21.  
  22.  
  23. --
  24.  
  25.            \\|//     Alastair Murray
  26.            (o o)       malcolm.murray@virgin.net
  27. |~~~~~~oOOo~(_)~oOOo~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  28. |         AMINET         |Web-Page (Amiga/Games/AMOS/trek/Music/    |
  29. |     game/role/CHAOS    |                  +more)                  |
  30. |game/jump/Banana Islands|http://freespace.virgin.net/malcolm.murray|
  31. |   game/shoot/Hanger18  |Current Projects: >Chaos 2                |
  32. |    dev/amos/keystate   | >Kill Em All     >Hanger 18 II           |
  33. |    dev/amos/picpack    | >Skool Daze      >The Crow               |
  34. |   game/shoot/traitor   | >Banana Islands                          |
  35. |   game/shoot/extinct   | >The Turtleminator                       |
  36. |     game/jump/blobby   | >Backbone - The Game Creator             |
  37. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38.  
  39.  
  40.